package cn.yeziji.forum.exception;

import cn.yeziji.forum.common.enums.ForumCommonStatus;
import cn.yeziji.forum.common.enums.status.UserStatus;

/**
 * 用户异常
 *
 * @author gzkemays
 * @since 2022/3/23 10:20
 */
public class UserException extends ForumException {
  public UserException(UserStatus status) {
    super(status.getCode(), status.getMsg());
  }

  public UserException(int code, String msg) {
    super(code, msg);
  }

  public UserException(ForumCommonStatus status) {
    super(status.getCode(), status.getMsg());
  }
}
